﻿<UserControl x:Class="Zcu.PanelComposer.Views.Pages.BaseView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:cal="http://www.caliburnproject.org"
             xmlns:uc="clr-namespace:Zcu.PanelComposer.Views.UserControls"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <DockPanel LastChildFill="True">
        <Label x:Name="DisplayName" Content="Title" FontSize="16" DockPanel.Dock="Top" />

        <Grid DockPanel.Dock="Bottom">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.7*" />
                <ColumnDefinition Width="0.15*" />
                <ColumnDefinition Width="0.15*" />
            </Grid.ColumnDefinitions>

            <Button Grid.Column="0" x:Name="ClearAction" Content="Clear" HorizontalAlignment="Right" Width="100" />
            <Button Grid.Column="1" x:Name="BackAction" Content="Back" />
            <Button Grid.Column="2" x:Name="SaveAction" Content="Save" />
        </Grid>
        
        <uc:BaseCanvas x:Name="PolyCanvas" PolyCollection="{Binding PolyCollection, Mode=TwoWay}" />
    </DockPanel>
</UserControl>
